package main

import (
	"fmt"
	"reflect"
)

func printTypeValue(v1 interface{}) {
	fmt.Printf("type: %T\tvalue: %v \n", v1, v1)
}

func main() {
	// var name string = "Go编程"
	var age int = 27

	v1 := reflect.ValueOf(&age)
	printTypeValue(v1)
	v2 := reflect.ValueOf(&age).Elem()
	printTypeValue(v2)
	v3 := reflect.ValueOf(age).Int()
	printTypeValue(v3)
}
